function gets(pageNum) {
    var a=$("#po_number").val();
    var b=$("#po_name").val();
    var c=$("#po_state").val();
    var d=$("#podi_hid").val();
    var e=$("#start_time").val();
    var f=$("#over_time").val();
    var g=$("#di_number").val();
    var h=$("#c_name").val();
    var i=$("#jixing").val();
    var j=$("#danwei").val();
    var k=$("#cc").val();
    var l=$("#qiye").val();
    var m=$("#shangpin").val();
    var n=$("#ruku_time").val();
    var s=$("#ruku_time1").val();
    var o=$("#dcid").val();
    var p=$("#di_approval_number").val();
    var q=$("#rukudanhao").val();
    var r=$("#supplier").val();

    var pageN = pageNum;

    $.ajax({
            url: '/myspringboot/purchasement/findAllrkb',
            type: 'post',
            dataType: "json",
            data:{ponumber:a,
                poname:b,
                postate:c,
                podihid:d,
                dinumber:g,
                cname:h,
                jixing1:i,
                //guige1:j,
                danwei1:j,
                ccc:k,
                qiye1:l,
                shangpin1:m,
                rukutime:n,
                dcid1:o,
                diapprovalnumber:p,
                rukudanhao:q,
                ssupplier:r,
                pageNum:pageN
            },

            success:function(result) {
                var list = result.data.list;
                yibu(result.data.pages,result.data.pageNum);

                $(".a").empty();
                for (i=0;i<list.length;i++) {
                    //序号
                    var diId = list[i].diId;
                    var podiPd = list[i].podiPd;
                    var aa="-"
                    if (i==list.length){
                        aa=""
                    }
                    if (podiPd!= null) {
                        var podiId1 = podiPd.podiId;
                        var bb=aa+podiId1;
                    }
                    //采购单id
                    var purchaseOrder = list[i].purchaseOrder;
                    if (purchaseOrder != null) {
                        var poId = purchaseOrder.poId
                        //采购单编号
                        var poNumber = purchaseOrder.poNumber;
                        //采购单名称
                        var poName = purchaseOrder.poName;
                    }else {
                         poId = "null"
                        //采购单编号
                         poNumber="null"
                        //采购单名称
                         poName ="null"
                    }
                    //流水号
                    var diNumer = list[i].diNumer;
                    //通用名
                    var diName = list[i].diName;
                    //商品名
                    var drugAtegory = list[i].drugAtegory;
                    if (drugAtegory!=null){
                        var daName = drugAtegory.daName;
                    } else {
                        daName="null"
                    }
                    //剂型
                    var diForm = list[i].diForm;
                    //规格
                    var diSpecifications = list[i].diSpecifications;
                    //单位
                    var diUnit = list[i].diUnit;
                    //转换系数
                    var diCc = list[i].diCc;
                    //中标价
                    var diNewPrice = list[i].diNewPrice;
                    //采购量
                    var podiPd1 = list[i].podiPd;
                    if (podiId1 != null) {
                        var podiNumber = podiPd1.podiNumber;
                        //采购金额
                        var podiTotal = podiPd1.podiTotal;
                    }else {
                         podiNumber="null"
                            //采购金额
                         podiTotal="null"
                    }
                    var dididi = "<input type='checkbox' name='chec' value='"+diId+bb +"' class='itemSelect'>";

                    var $tr = '<tr>'+
                        '<td>'+'<input type="hidden" id="a5" value="'+poId+'"></td>'+
                        '<td>'+dididi+'</td>'+
                        '<td>'+poNumber+'</td>'+
                        '<td>'+poName+'</td>'+
                        '<td>'+diNumer+'</td>'+
                        '<td>'+diName+'</td>'+
                        '<td>'+daName+'</td>'+
                        '<td>'+diForm+'</td>'+
                        '<td>'+diSpecifications+'</td>'+
                        '<td>'+diUnit+'</td>'+
                        '<td>'+diCc+'</td>'+
                        '<td>'+diNewPrice+'</td>'+
                        '<td>'+diNewPrice+'</td>'+
                        '<td>'+podiNumber+'</td>'+
                        '<td>'+podiTotal+'</td>'+
                        '<td>'+'<input id="a1" type="text" value="" style="width: 65px">'+'</td>'+
                        '<td>'+'<input id="a2" type="text" value="" style="width: 65px">'+'</td>'+
                        '<td>'+'<input id="a3" type="text" value="" style="width: 65px">'+'</td>'+
                        '<td>'+'<input id="a4" type="text" value="" style="width: 65px">'+'</td>'+

                        '</tr>'
                    $(".a").append($tr);


                }
            }
    })
}